package com.dingreading.cloud.admin.service;

import com.dingreading.cloud.admin.entity.StoreProtect;
import com.dingreading.cloud.admin.entity.Stores;
import com.dingreading.cloud.common.base.R;
import com.mybatisflex.core.service.IService;

import java.util.List;

/**
 * 服务层。
 *
 * @author Administrator
 * @since 2024-11-21
 */
public interface StoreProtectService extends IService<StoreProtect> {

    void deleteByStoreUid(String storeUid);

    List<StoreProtect> getByStoreUid(String storeUid);

    List<StoreProtect> listByStoreUid(List<String> storeUids);

    // 获取附近区域保护范围的门店
    List<String> getPolygonStoreList(String longitudeMin, String longitudeMax, String latitudeMin, String latitudeMax);

    void updateEnabled(String storeUid, Integer enabled);

    R<Object> getAllStoreProtects();

}
